package config.infra;

import javax.sql.DataSource;
import org.apache.ibatis.datasource.pooled.PooledDataSource;

/**
 * Created by yuanj on 2018/4/18.
 */
public class DataSourceCreator {

  public static DataSource createDataSourse() {
    return new PooledDataSource(DriverConfig.driver, DriverConfig.url, DriverConfig.username, DriverConfig.password);
  }

}
